package com.lanyam.travel.base.entity;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author rosson
 * @since 2020-02-22
 */
@TableName("travel_order_details")
public class TravelOrderDetails extends Model<TravelOrderDetails> {

    private static final long serialVersionUID = 1L;

    @JsonProperty(value="id")
    private String id;
    /**
     * 订单id
     */
    @JsonProperty(value="orderId")
    @TableField("order_id")
    private String orderId;
    /**
     * '商品ID,酒店的房间或景区/线路的门票'
     */
    @JsonProperty(value="goodId")
    @TableField("good_id")
    private String goodId;
    /**
     * '商品类型(0景点，1酒店，2线路)'
     */
    @JsonProperty(value="goodType")
    @TableField("good_type")
    private Integer goodType;
    /**
     * '商品数量'
     */
    @JsonProperty(value="goodQuality")
    @TableField("good_quality")
    private Integer goodQuality;


    public String getId() {
        return id;
    }

    public TravelOrderDetails setId(String id) {
        this.id = id;
        return this;
    }

    public String getOrderId() {
        return orderId;
    }

    public TravelOrderDetails setOrderId(String orderId) {
        this.orderId = orderId;
        return this;
    }

    public String getGoodId() {
        return goodId;
    }

    public TravelOrderDetails setGoodId(String goodId) {
        this.goodId = goodId;
        return this;
    }

    public Integer getGoodType() {
        return goodType;
    }

    public TravelOrderDetails setGoodType(Integer goodType) {
        this.goodType = goodType;
        return this;
    }

    public Integer getGoodQuality() {
        return goodQuality;
    }

    public TravelOrderDetails setGoodQuality(Integer goodQuality) {
        this.goodQuality = goodQuality;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "TravelOrderDetails{" +
        ", id=" + id +
        ", orderId=" + orderId +
        ", goodId=" + goodId +
        ", goodType=" + goodType +
        ", goodQuality=" + goodQuality +
        "}";
    }
}
